import { IvMap, PrismView } from "@/components"
import { message } from "antd"
import { Texts } from './text'

function MapDom() {
  function clickHandler(e) {
    message.success(`你点击了地图`)

  }
  function clickMarker(e) {
    message.success(`你点击了标记`)

  }
  return (
    <div style={{ width: '100%', height: '100%' }}>
      <PrismView html={Texts}></PrismView>
      <IvMap position={[114.06455, 22.54846]} clickMarker={clickMarker} clickHandler={clickHandler}></IvMap>
    </div>
  )
}
export default MapDom